<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>北京市职业介绍服务信息系统</title>
	<link rel="stylesheet" href="./styles/css/common.css">
	<link rel="stylesheet" href="./styles/css/index.css">
	<style>
		.msg_box_wrap .msg_box {
			height: 250px;
		}

		.msg_box .content {
			margin-top: 30px;
			text-align: center;
		}

		.con_btn {
			color: #fff;
			padding: 0 30px;
			height: 30px;
			background-color: #b2c7f8;
			border-color: #b2c7f8;
			line-height: 1;
			transition: all ease-in-out .3s;
			margin: 0 10px;
			cursor: pointer;
			margin-bottom: 8px;
			border-radius: 6px;
			min-width: 100px;
			box-sizing: border-box;
		}

		.msg_box .content .wdw_col {
			border: 1px solid #30b5ec !important;
			color: #7e7e7e !important;
			background-color: #fff !important;
		}

		.msg_btn {
			margin-top: 20px;
		}
	</style>
</head>

<body class="body jyzbjc">
	<include src="./include/header.html"></include>
	<!-- main 开始 -->
	<div class="main ">
		<div class="container clearfix">
			<div class="left shadow">
				<div class="card_title">
					<a class="go_fhsy" href="./index.html" title="点击返回首页">首页</a> | <h3>中小微企业管理综合诊断</h3>
				</div>
				<div class="index_msg clearfix">
					<div class="content Main_introduce">
						<h2 class="title">主要说明</h2>
						<p class="text">本量表包括企业管理现状、员工工作现状和背景信息三个部分的内容，可以帮助管理人员和就业服务工作人员评估企业的管理，特别是人力资源管理状况，以帮助制订相应的管理措施和建议。 请您根据每个部分的具体要求和企业的真实情况作答，每题请选择您认为最符合的一个选项。</p>
					</div>
					<div class="index_choice">
						<button class="btn btn_blue_deep Btn_test J_goTest">开始测评</button>
					</div>
				</div>
			</div>
			<!-- 右侧公用信息 -->
			<include src="./include/rightBox.html"></include>
		</div>
	</div>
	<!-- main 结束 -->
	<include src="./include/footer.html"></include>

	<script src="./common/js/vendor.js"></script>
	<script src="./common/js/common.js"></script>
	<script>
		$(function () {
			var Load = new $.Loading(); //加载
			var cppcid;//测评id
			//点击开始测评
			$(document).on('click', '.J_goTest', function () {
				Load.on();
				//基本信心查询
				$.fetch({
					url: '/zxwqy/jbxxCx',
					type: 'get'
				})
					.done(function (res) {
						Load.off();
						var result = res.returnData;
						if (parseInt(result.executeResult, 10) === 1) {
							var sfwhbjxx = result.dwxx.sfwhbjxx;
							//sfwhbjxx为0 未填写信息 1已填写信息
							if (sfwhbjxx == '0') {
								$.layerMsg('请先填写单位基本信息再进行答题！', [
									{
										text: '确定',
										cb: function () {
											window.location.href = './qybjxx.html';
										}
									}, {
										text: '取消',
										cb: function () {
										}
									}
								])
							} else if (sfwhbjxx == '1') {
								//sfwhbjxx存在 - 点击开始测评看是否有未完成的题目
								getWwctmCx()
							}
						}
					})
					.fail(function (err) { });

			})
			//是否存在未完成的题
			function getWwctmCx() {
				Load.on();
				var url = './test.html';
				$.fetch({
					type: 'get',
					url: '/zxwqy/wwctmCx',
				}).done(function (res) {
					Load.off();
					var _res = res.returnData;
					if (+_res.executeResult === 1) {
						cppcid = _res.cppcid;
						window.location.href = url + '?' + 'cppcid' + '=' + cppcid;
					} else {
						cppcid = _res.cppcid;
						window.location.href = url + '?' + 'cppcid' + '=' + cppcid;;

					}
				})
			}
		});

	</script>
</body>

</html>
